home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_2
/
tlxtw104.zip
/
SCRIPTS.DOC
< prev
next >
Wrap
Text File
|
1993-03-26
|
27KB
|
610 lines
TLXTW104.ARJ/ZIP
Telix 3.15/3.21 Scripts for Tradewars 2002 v1.03(d)
version 1.04
SALT and Telix are trademarks of deltaComm Development.
Use of Telix(tm) for longer than 45 days without appropriate payment
to deltaComm Development for Telix is a violation of international
Copyright Law.
These scripts are not free. These scripts are SHAREWARE. If you use
them and find them useful you should register. This will encourage the
author to improve and upgrade the scripts for future public release.
Registration will remove the annoying please register messages. This
release is a fully functional version.
THE AUTHOR IS NOT LIABLE FOR ANY DAMAGES RESULTING IN OR FROM THE USE OF
THESE SCRIPTS.
Author's address:
Phil Crown
326 Kinney Drive
Wylie, TX 75098-7725
If you don't read this entire file, some things may not work correctly.
-----------------------------------------------------------------------
.KE FILES
-----------------------------------------------------------------------
Key files allow you to redefine the keyboard. The default .key file is
Telix.key. To load new a .key file, in Telix, type Alt-K, R, L,
filename.ext. After Trader.ke or Planet.ke has been loaded type
Alt-F2 to switch between the two. (Note: the default extension is KEY,
but I am using KE to help avoid confusion between ANSI.KEY and
AVATAR.KEY, etc, which Telix uses for Terminal Emulations).
These three files belong in the same directory as Telix.exe.
PLANET.KE
TRADER.KE
TLXTWHLP.TXT (online help Alt-F1, requires list.com)
You can optionally compile the below script and assign it to any key you
want, and save it in Telix.key, for a quick and easy way to initially load
Trader.key. To assign scripts to the keyboard, in Telix, type Alt-K, R,
E, key to edit, @name_of_script. Note the "@" precedes the name of the
script, then Enter and SAVE.
// loadkey.slt
main()
{
if (keyload("trader.ke") > -1)
status_wind("Trader.ke loaded", 10);
return;
}
// end
Please read the Telix documentation for further information about Telix.
-----------------------------------------------------------------------
ENVIRONMENT VARIABLES
-----------------------------------------------------------------------
The directory where Telix.exe resides should always be set in the
environment whether you use these scripts or not.
Ex: Set Telix=C:\Telix
Five other environment variables must be for these scripts.
F1, STATLINE, STATLINE_COLOR, DR, and TEMP.
F1 - the path where scripts will make and store data files.
Ex: SET F1=C:\Telix\Twgames\
the trailing "\" is optional, but I recommend adding it in the
case above.
STATLINE - the row of your statusline, this should be 0 or 24.
Ex: SET STATLINE=0
or
SET STATLINE=24
STATLINE_COLOR - the color of the status line. Run color.slc for
available colors.
Ex: SET STATLINE_COLOR=31 (white on blue)
DR - is the delay rate. If your at 9600 bps or faster, this can be 2.
if you running at 2400 bps, set this to 4 or higher. The lower
this number the faster Telix responds. But if it is to low,
Telix responds to quick.
Ex: SET DR=4
If your experiencing trouble at 2400 bps such as scripts hanging
try raising this number gradually until the problem disappears,
but I wouldn't recommend raising it higher than 10. Unless you
want to have to wait for a full second in some places :-)
TEMP - where temporary files are held.
Ex: SET Temp=C:\Temp
Here is an example batch file which loads Telix.
TEL.BAT
@echo off
set f1=c:\games\traders\
set statline=0
set statline_color=31
set dr=2
set temp=c:\
c:
cd\telix
telix
set f1=
set statline=
set statline_color=
set dr=
If any one of the above environment variables is not set, some scripts
will not function.
-----------------------------------------------------------------------
.SLC FILES
-----------------------------------------------------------------------
All .SLC files belong in the script directory.
Here they are and a brief description for each one.
Script name: Hot-Key (Trader.key) Description:
DEPLOY_F.SLC F1 Deploys Corporate Toll fighters.
TRADE.SLC F2 Single trading (Equipment / Organics only).
SELL-BUY.SLC F3 Paired Ports (Equipment / Organics only).
SEL-STEL.SLC F4 Sell / steal cycle (Equipment only).
SELSNHAG.SLC F7 " " non-haggling.
PRIME.SLC F8 Steals Equipment.
ROBCREDT.SLC F9 Robs credits.
BUSTREAD.SLC F11 Reads .dat files.
BUSTFAKE.SLC F12 Records sector (Class 0) ports.
ATTKPORT.SLC Alt-A Attacks ports.
DNINTG.SLC Alt-D Downloads .prt and .sct files.
TWIMAGE.SLC Alt-I Saves an image of the screen in the game's directory.
MINE_DIS.SLC Alt-M Mine disruptors.
PHOTON.SLC Alt-P Launches Photon torpedoes.
DENSCAN.SLC Alt-S Upgraded density scanner. (also on keypad + )
FUEL.SLC Alt-T Steals Ore.
TLXTWHLP.SLC Alt-F1 Online help. (requires list.com)
LOADKE.SLC Alt-F2 Toggles .Ke files
ATTKSHIP.SLC Ctrl-A Attacks other ships / deployed fighters.
BBSNAME.SLC Ctrl-B Fills _entry_name variable (creates directory).
CRAI.SLC Ctrl-C Creates .dat file from .prt file.
ETHEREND.SLC Ctrl-E Etherprobes (reads text file of sector numbers).
GRIMY.SLC Ctrl-G Grimy Trader tracing.
INTEROGT.SLC Ctrl-I Downloads .prt file only.
CRSEPLOT.SLC Ctrl-P Turn counter / t-warp calculator.
TRICON.SLC Ctrl-T Tricon.
BUSTED.SLC Alt-F12 Records sector and date when busted.
MAJOR_LN.SLC Shft-F1 Major Space Lane finder
HOWBADAM.SLC Shft-F2 How many holds / credits are safe to steal.
CUSGRIMY.SLC Shft-F3 Cuss Grimy Trader to lower alignment.
MOVE.SLC keypad . Move / Deploy / Scan
───────────────────────────────────────────────────────────────────────────
Script name: Hot-Key (Planet.key) Description:
POPTRANS.SLC F1 Transwarp planet populator.
POPSTNRD.SLC F2 Standard warp planet populator.
MATLMOVE.SLC F3 Moves commodities bewteen planets within same sector.
PLA_PO_M.SLC F4 Moves colonists bewteen planets " " "
PLANET_D.SLC F5 Destroys planets for experience.
CEYLAD.SLC F11 Corporate Megaholds
-----------------------------------------------------------------------
OPERATION
-----------------------------------------------------------------------
Scripts create a seperate directory under the path you enter in the F1
environment variable for each different BBS and/or game that you
play.
The directory is named by the first eight characters of the name in the
dialing directory. It doesn't matter if the name is less than eight
characters, though. Characters that are illegal in DOS filenames are
filtered out. They are ( ) space, * asterisk, + plus, . period, /
slash, and ? question mark. Any other illegal characters are not
checked for and should be changed by you manually in the dialing
directory.
To initialize a .dat file run "bbsname" (Ctrl-B). Enter the first eight
(8) characters of the from the dialing directory of the bbs exactly as
they appear in the dialing directory. It'll ask to create the
directory, and you should respond Y or the dir will not be created and
nothing will work right. A seperate directory is created for each BBS
you call. Then log into a game and run "Bustfake" (F-12). Or run
"Interogt" (Ctrl-I) then "Crai" (Ctrl-C). (Note: Sometimes if you try
to download the CIM reports (Ctrl-I or Alt-D) before you have made a
move in the game, the game will kick you out, so make a move or two or
plot a course in to the ship's onboard course plotter first to ensure
you don't get involuntarily kicked out).
The directory is named by the first 8 characters and the data files will
be named by the first 3 characters in the dialing directory for the BBS
you call. This way there will be a seperate directory and .dat file for
each BBS you call. For example, if you call a BBS named Terminator,
then the directory will be named \TERMINAT, and the data file would be
named TER.DAT. Quad C BBS would be named \QUAD_C_B and QUA.DAT. If
you're playing in two or more games on the same bbs, then run
bbsname.slc (Ctrl-B) after you finish the first game, and enter
something like termina2 or something to create a seperate directory and
data file for that game. Remember to always enter the same name each
time you log into that particular game.
Using a status line is required. If the STATLINE and STATLINE_COLOR
environment variables are not set some scripts will not run. The status
line will always show which script is currently running, if any, which
is very, very helpful to avoid loading to many scripts at one time.
Most scripts will terminate automatically when its finished, but
sometimes you may have to abort one with the Esc key. Alt-8 toggles the
status line on/off in Telix. Some scripts will also display useful
information on the status line.
The easiest way to run a script is to assign it to a keyboard macro.
(Alt-K, R, E, key to edit). Make sure it begins with a @. Ex.
"@bustfake". Trader.ke and Planet.ke are included with scripts already
assigned with Alt-F1 for help, but you can reassign them anyway you
like. (Note: KEY files are being called .KE to avoid confusion with
ANSI.KEY and others that Telix uses for Terminal Emulations)
Scripts should be loaded while you're at the "Command [TL=" prompt,
except for "Grimy" and "Tricon", which should be loaded while in the
"<Tavern>." Scripts will now tell you if you are not at the correct
prompt. Always abort a script before loading another script or it may
cause problems if they pile up ontop of each other, all scripts can be
aborted with Escape.
Trading scripts stop trading if you get busted or encounter a Ferrengi.
"Busted" (Alt-F12) writes a file when you get busted and "bustread"
reads the file, so all you have to do is warp into a sector and run
"bustread" (F11) to find the last time you were busted in that sector.
Busted is normally called by other scripts, but can be run manually if
needed. If it has been more than 14 days then the options to steal or
rob the port will appear in the display box.
"Denscan" reads the .dat file, created by "busted" and "bustfake", and
will show what class port is in an adjacent sector when doing a density
scan if that sector is not unvisited, and if busted then how many days
ago. If the locations of the three Class 0 ports are recorded in the
.dat file, and you know the sector of SGA, and you've run "major_ln"
(Shft-F1), then it will show if it is a major space lane or not. The
word 'Fed' will appear when a fed is nearby.
The only difference between "busted" and "bustfake", is that "busted"
records the sector and port and flags it as being busted in, while
"bustfake" just records the sector and port not flagged as being busted.
"Bustfake" is a quick way to add a sector to the .dat file without
having to download the CIM port report file, (Ctrl-I) and clean it with
"crai" (Ctrl-C), which is more time consuming. Bustfake is also the
only to properly record the Class 0 ports. The Class 9 port will not be
saved in the data file after cleaning. To save a Class 9 port, you will
have to edit the .dat file with a text editor and enter it as a Class 8
port. For example, if the Class 9 port is in sector 804 the entry would
look like this:
804 8
^space
-----------------------------------------------------------------------
HELPFUL HINTS
-----------------------------------------------------------------------
They will sell Ore but not buy it. This is intentional, to make scripts
run more in "automatic" mode.
The haggling scripts don't require or even use the the Physic probe, so
don't waste credits buying one.
For Good Players
F3 (Trader.key) - this script is very good when you play good, or if
sell-buy you're in a new game and are trying to build
experience fast. It haggles Org/Equipment at paired
ports and usually gets 1 or 2 exp. points each trade.
F2 (Trader.key) - this script is just a single trading (as opposed to
trade paired ports) haggler.
For Evil Players
F4 (Trader.key) - runs the sell/steal cycle for equipment only.
sel-stel Haggles and usually gets 1 or 2 exp. points.
F7 (Trader.key) - runs the sell/steal cycle for equipment only.
selsnhag Doesn't haggle, but is very fast. Very good for when
you don't need every little experience point. Turn
off ANSI (or leave it on) and let this RUN.
-----------------------------------------------------------------------
GETTING STARTED
-----------------------------------------------------------------------
Directories must be created. Run Ctrl-B. (On or Offline)
Data files must be created/maintained. Run F12 to initialize.
Then Alt-F12 (busted) as necessary or F12 (bustfake).
Until you build up a good data file, you should run Ctrl-I, Ctrl-C
regularly. Run Ctrl-I (downloads CIM port report), wait until it
stops, hit Esc, wait, then run Ctrl-C. Ctrl-C can be done on or
offline. It can be aborted at anytime with escape without damaging the
data file IF THE DATA FILE DOES NOT CONTAIN ANY JULIAN TIME DATES (ports
you were busted at), those will be LOST. This is why CRAI (Ctrl-I)
makes a back up of the data file first. If you abort and don't have any
busted ports you want to keep track of then run Ctrl-I again, then
Ctrl-C. If you have busted ports you want to keep track of, copy the
*.bak file to *.dat first. Alt-D can be run instead of Ctrl-I. Alt-D
does the same thing as Ctrl-I, and downloads the CIM sector report
(.sct) too. This is mostly for other third party support programs that
use both files. Telix Tradewars Scripts only use the CIM port report.
They will run with ANSI on or off, and will turn ANSI off when
necessary, (ie, downloading CIM reports or downloading the Unexplored
Sectors report for the etherprobing script to read).
-----------------------------------------------------------------------
ETHEREND - etherprobes sectors read from a text file.
You will need a file called edit that takes will accept parameters from
the command line in your path that invokes a text editor. The following
batch file will work if you don't already have it. Replace q with the
name of your text editor.
Edit.bat
@echo off
q %1 %2 %3 %4
TLXTWHLP.SLT - check the variable "help" in here if you don't use
list.com and enter your list program. Then recompile
this script with CS.exe which comes with Telix.
Ex: CS Tlxtwhlp
-----------------------------------------------------------------------
REGISTRATION
-----------------------------------------------------------------------
Register Telix Tradewars Scripts. Only $10.00
Quantity Description Price/copy Total:
___ Telix Tradewars Scripts (latest version) $10.00 ______
disk 5.25" ___ 0.00 __0.00
disk 3.5" ___ 1.00 ______
Texas residents add State and Local Taxes: ______
Grand Total ______
Your Real Name:________________________________________________________
Address:_______________________________________________________________
City, State, Zip:______________________________________________________
Phone # ( ) ___-____
BBS Name:_____________________ Data # ( ) ___-____
Send registrations to:
Phil Crown
326 Kinney Drive
Wylie, TX 75098-7725
This will entitle you to legally continue to use Telix Tradewars beyond a
reasonable evaluation period and qualify you for the upgrade package at
a considerably reduced rate.
If you have any questions about these scripts leave me a message in the
Fidonet Telix or Tradewars Echo.
Version History:
12-25-92
TLXTWS01 Initial release.
TLXTW101 Added alot more scripts. Changed the format of the .dat
files and speeded up reading dat files alot.
Raised the amount Sel-stel offers when haggling.
Not released.
03-16-93
TLXTW102 Mostly just trying to get scripts suitable for public
use.
03-25-93
TLXTW103 CEYLAD added.
LOADKE is corrected. (Toggles between Trader.ke and
Planet.ke Note: .Key files have
been renamed to .ke, this helps
avoid confusion with ANSI.KEY and
AVATAR.KEY that Telix uses for
Terminal emulations)
Improved ETHEREND (Etherprobing)
Fixed bug in ATTKSHIP that if used while invading planets,
would sometimes cause QEMM Exception 13.
Fixed alot of other things.
Trying to ensure that everything will work at 2400 bps.
I know they work from 9600 to 14.4k.
03-25-93
TLXTW104 Fixed small bug in CEYLAD.
I can be contacted thru:
Phil Crown
Fidonet Telix Echo
Fidonet Tradewars Echo
Netmail Address 1:124/6106.105
-----------------------------------------------------------------------
GLOSSARY
-----------------------------------------------------------------------
BBSNAME CTRL-B (TRADER.KEY)
This fills the _entry_name variable in SALT. _Entry_name is a SALT
variable that holds the name of the BBS from the dialing directory your
connected to. This serves three purposes. It will create directories
for new games, and if you start Telix while already online or for some
other reason the _entry_name variable wasn't passed during logon it will
fill that variable. Another use for this is if you're playing in more
than one game one the same bbs, you'll need to keep seperate .dat files.
Before you enter the second game, run this and enter a name to denote
the change. Directories are named by the first 8 characters, data files
by the first 3 characters of the name in the dialing directory. You'll
be asked whether to create a new directory or not.
BUSTED = ALT-F12. (TRADER.KEY)
Normally this will be "called" by other scripts, but it can be run
as a standalone if need be. It writes a data file with the sector #,
port #, and date as represented by the number of seconds since Jan. 1,
1970 when you get busted.
BUSTFAKE = F12 (TRADER.KEY)
Adds a sector # and port class to the database for the denscan.slt
(upgraded density scanner) script. Doesn't record the port as being
busted at. This is the only way to record the Class 0 ports in the
database.
BUSTREAD = F11 (TRADER.KEY)
Reads the database Busted and Bustfake create.
CEYLAD = F11 (PLANET.KEY)
Runs the Corporate Megaholds bug. Start on the planet while the ship
that has 0 holds is in the citadel.
CRAI = CTRL-C (TRADER.KEY)
Converts the file created by interogt.slt into a database.
Run Interogt.slt (Ctrl-I) or Dnintg (Alt-D) first, then run this.
This can be run on or offline.
CRSEPLOT = CTRL-P (TRADER.KEY)
Pops up a box with the current sector, asks for a destination sector,
then counts turns and fuel need to Twarp from current sector to a
destination and back to the current sector.
DENSCAN = ALT-S (TRADER.KEY)
Reads the database crai.slt creates and will show what Class ports are
in adjacent sectors when density scanning, how long ago busted, feds
and major space lanes if major.lan file exists ("major_ln", Shft-F1)
DEPLOY_F = F1 (TRADER.KEY)
Deploys Corporate Toll fighter(s).
Example; if at a class 1 port = deploys 11 fighters, class 2 = 2 figs,
no port in sector = 1 fighter. Doesn't deploy in Fedspace.
You must belong to a Corporation for this to work.
DNINTG = ALT-D (TRADER.KEY)
ASCII downloads the CIM port and sector reports.
Autodetects whether ANSI is on or off.
ETHEREND = CTRL-E (TRADER.KEY)
Fires ether probes. Reads sector numbers from a text file. This is
usually an ascii download of the Unexplored sectors function of the CRAI
XXV onboard computer, but it can be any file (just sector numbers in a
column will work). When you run out of ether probes it will port at the
Stardock and buy 25 more ether probes, providing you're in the same
sector as SD and have enough credits. A temporary file holds a string
that represents the offset of the last sector read from the text file
(ether.123) so that if the script is aborted, then resumed it won't
shoot into sectors that its already done. It asks to write an image
file of the screen when it finds something possibly interesting, i.e,
planets, ferrengi, or other ships. If you want to use a pre-existing
text file of sectors, copy the file you want to use to the directory
specified in the "Temp" environment variable and name it ETHER.123. Ex:
d:\tmp\ether.123
FUEL = ALT-T. (TRADER.KEY)
Robs a port of Ore for T-warp or whatever. The port must have at least
at least the number of you holds that you want to steal on its docks.
GRIMY = CTRL-G (TRADER.KEY)
Asks the Grimy Trader to trace another trader. You must enter enough
letters to match the trader being traced exactly right the first time
Grimy says "Do you mean ***?" Saves any info the Grimy Trader gives in
a capture file named Grimy.Txt.
INTEROGT = CTRL-I (TRADER.KEY)
Enters the interrogation mode of the CRAI computer and downloads the
ports visited information. Run this first then run Crai (Ctrl-C).
LOADKE = Alt-F2 (TRADER.KEY/PLANET.KEY)
Toggles between Trader.ke and Planet.ke
MAJOR_LN = SHIFT-F1 (TRADER.KEY)
Finds the major space lanes. You must have the three Class 0 ports
(Terra, Alpha Centuari, and Rylos) recorded in the .dat file and sorted
by sector number, ascending, and know the location of SGA. If all three
Class 0 ports are not in the dat file, major lanes may be inaccurate.
MATLMOVE = F3 (PLANET.KEY)
Moves commodities bewteen planets within the same sector.
MINE_DIS = ALT-M (TRADER.KEY)
Launches mine disruptors into the sector you specify.
PHOTON = ALT-P (TRADER.KEY)
Launches a photon-torpedo into the sector you specify then enters the sector
Begins the landing sequence and will Attack ONCE, then you're on you're
own. Doens't actually do the invading. Just gets into the sector fast.
PLANET_D = F5 (PLANET.KEY)
Planet Destroyer - blows up planets for experience and fun. You must
belong to a Corporation for this to work. Its a good idea to belong to
a corp even if you're the only one on it. This script works best with
ANSI turned off. Its written to be run in the sector with the
Stardock, so when you run out of Genesis torps and/or atomic detonators
it will port and get some more. It asks for a planet number so that you
don't accidentally land on a populated planet (if there is one) and get
blown up yourself, or if you have a Planet Scanner. A planet does not
have to specified for it to run, unless there is more than one planet
in the sector or you have a planet scanner. Just enter the number of
the planet to land on or hit Enter to skip it. Escape to abort.
PLA_PO_M = F4 (PLANET.KEY)
Moves coloinists from one planet to another within the same sector.
PUT COLONISTS IN ORGANICS group on the planet to take colonists from.
POPSTNRD = F2 (PLANET.KEY)
Standard Warp Planet Populating script.
POPTRANS = F1 (PLANET.KEY)
Trans-warp Planet Populator (handles Evil ISS). Just set everything in
place (beacon fighters) like you were going to do it manually. Start in
the same sector as the planet(s) to populate with all cargo holds empty
and not on the planet. There is one restriction currently: The sector
near to Terra to T-warp to must be exactly two warps from Terra, which
it usually is anyway. This script will abort if there is a Fed in any
sector near Fedspace. Uses density scan, not Holo. When this script
runs, it will ask for a sector to T-warp to (that is the sector near
Terra). Then it will count the turns and how much ore is needed, next it
asks for a planet number to land on (leave this blank if you do not have
a planet scanner or there is only one planet in the sector or the script
will hang), where to pick up the fuel, choices are the same planet,
another planet in the same sector, or a port in the same sector as the
planet to populate, finally how many times to run.
*IMPORTANT* I have recently discoverd a flaw in the logic this
scripts uses. Any density scan ending in 2, 3, 4, 7, 8, or 9 is a FED.
Therefore, if a Fed is in Sector #1 with Terra, and a beacon, the
density scan may end in 0, thus not registering as being a Fed. I will
either remove the claim that it works for the Evil ISS, or change the
script so that it will abort if the density is above 200 or so, in the
next version. So, if you're using this script with an EVIL ISS, be
cautious, it is a rare occurance, but it can happen, I found out the
hard way. Another thing I should mention is that if you're in an ISS,
this script automatically assumes you're Evil, I'll fix this too soon.
After all, that is the only way to fly. :-)
PRIME = F8 (TRADER.KEY)
Steals Equipment
ROBCREDIT = F9 (TRADER.KEY)
Robs credits. Stops robbing when there are less than 750 credits at
the port.
SEL-STEL = F4 (TRADER.KEY)
Runs the sell/steal cycle (Equipment only).
SELL-BUY = F3 (TRADER.KEY)
Paired port trading. Organics / Equipment only.
Load this script when the ship's holds are full and ready to move into
the adjacent sector to sell.
SELSNHAG = F7 (TRADER.KEY)
Runs the steal/sell cycle (non haggle). You must already have the equipment
aboard your ship that you want to sell/steal. It only works for equipment.
TLXTWHLP = ALT-F1 (TRADER.KEY/PLANET.KEY)
Uses List.com to list a text file that shows the key assignments.
Tlxtwhlp.txt file should be in the same directory as Telix.exe.
If you don't use list.com then edit Tlxtwhlp.Slt and enter your viewing
program.
TRADE = F2 (TRADER.KEY)
Single trading. Ports and haggles whatever you have or want to buy.
Doesn't buy Ore.
TRICON = CTRL-T (TRADER.KEY)
Plays TRI-CON for 3 minutes or until the jackpot is won.
TWIMAGE = Alt-I
Saves an image of the screen in the game's own directory.
End of File